package com.fileServer.fileHandler;

import org.springframework.web.servlet.resource.ResourceHttpRequestHandler;
import java.util.List;


/**
 * @author 大忽悠
 * @create 2023/2/28 10:25
 */
public class CustomFileResourceHttpRequestHandler extends ResourceHttpRequestHandler {

    @Override
    public void afterPropertiesSet() throws Exception {
        setResourceResolvers(List.of(new CustomPathResourceResolver()));
        super.afterPropertiesSet();
        setUrlPathHelper(null);
    }
}
